package com.acdc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * OTA分割对象 ota_split
 * 
 * @author acdc
 * @date 2025-08-12
 */
public class OtaSplit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long id;

    /** OTA版本ID */
    @Excel(name = "OTA版本ID")
    private Long otaVersionId;

    /** 文件序列号 */
    @Excel(name = "文件序列号")
    private Integer seqNum;

    /** 片段长度 */
    @Excel(name = "片段长度")
    private Integer length;

    /** OTA片段 */
    @Excel(name = "OTA片段")
    private String data;

    /** 校验码 */
    @Excel(name = "校验码")
    private Integer checksum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOtaVersionId(Long otaVersionId) 
    {
        this.otaVersionId = otaVersionId;
    }

    public Long getOtaVersionId() 
    {
        return otaVersionId;
    }
    public void setSeqNum(Integer seqNum) 
    {
        this.seqNum = seqNum;
    }

    public Integer getSeqNum() 
    {
        return seqNum;
    }
    public void setLength(Integer length) 
    {
        this.length = length;
    }

    public Integer getLength() 
    {
        return length;
    }
    public void setData(String data) 
    {
        this.data = data;
    }

    public String getData() 
    {
        return data;
    }
    public void setChecksum(Integer checksum) 
    {
        this.checksum = checksum;
    }
    public Integer getChecksum() 
    {
        return checksum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("otaVersionId", getOtaVersionId())
            .append("seqNum", getSeqNum())
            .append("length", getLength())
            .append("data", getData())
            .toString();
    }
}
